package com.apimarket.factory;

import com.fasterxml.jackson.databind.ObjectMapper;

public class JsonMapperFactory {
    private static ObjectMapper mapper;

    private JsonMapperFactory() {
    }

    public static ObjectMapper getInstance() {
        if (mapper == null) {
            synchronized (JsonMapperFactory.class) {
                if (mapper == null) mapper = new ObjectMapper();
            }
        }
        return mapper;
    }
}
